package com.tian.feign;

import com.tian.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author tianwc  公众号：java后端技术全栈、面试专栏
 * @version 1.0.0
 * @date 2023年05月09日 20:13
 * 博客地址：<a href="http://woaijava.cc/">博客地址</a>
 */
@FeignClient(contextId = "testFeignClient", value = "charge-service", fallbackFactory = TestFallback.class)
public interface TestFeignClient {
    @GetMapping("/test/index/{id}")
    User test(@PathVariable("id") Long id);
}
